home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / jobs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-04  |  2.0 KB  |  95 lines

  1. /* jobs.h
  2.    header file for jobs.c */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19. #ifndef JOBS_H
  20. #define JOBS_H
  21. #include "osdep.h"
  22.  
  23. typedef struct jobListStruct {
  24.     char    jobType;
  25.     PID_TYPE    pid;
  26.     struct jobListStruct *next;
  27.     } jobList;
  28.  
  29.  
  30. #include <signal.h>
  31. #define KILL_SIGNAL    SIGTERM
  32.  
  33. #define NO_JOB        ((PID_TYPE) -1)
  34. #define NO_TYPE        (A_UNKNOWN)
  35.  
  36.  
  37. void        addJob(
  38. #ifdef PROTO
  39.     int,        /* t */        /* really char */
  40.     int        /* pid */    /* really PID_TYPE */
  41. #endif
  42. );
  43.  
  44. BOOLEAN        removeJob(
  45. #ifdef PROTO
  46.     int        /* pid */    /* really PID_TYPE */
  47. #endif
  48. );
  49.  
  50. char        findJobPID(
  51. #ifdef PROTO
  52.     int        /* pid */    /* really PID_TYPE */
  53. #endif
  54. );
  55.  
  56. PID_TYPE    findJobType(
  57. #ifdef PROTO
  58.     int        /* t */        /* really char */
  59. #endif
  60. );
  61.  
  62. void        killItemProcess(
  63. #ifdef PROTO
  64.     int        /* pid */    /* really PID_TYPE */
  65. #endif
  66. );
  67.  
  68. void        killAllItemType(
  69. #ifdef PROTO
  70.     int        /* t */        /* really char */
  71. #endif
  72. );
  73.  
  74. void        killAllItemProcesses(
  75. );
  76.  
  77. void        waitOnChildren(
  78. );
  79.  
  80. void        waitForJob(
  81. #ifdef PROTO
  82.     int        /* waitPID */    /* really PID_TYPE */
  83. #endif
  84. );
  85.  
  86. void        childIsGone(
  87. );
  88.  
  89. #ifdef DEBUG
  90. void        listJobs(
  91. );
  92. #endif /* DEBUG */
  93.  
  94. #endif    /* JOBS_H */
  95.